package com.niu.mapper;

import com.niu.pojo.OperateLog;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 * @Author 鹅鹅鹅
 * @Version 1.0.0
 * @Date 2025/7/19 19:45
 * @Description 操作日志持久层
 */
@Mapper
public interface OperateLogMapper {

    // 记录日志
    @Insert("insert into operate_log values (null, #{operUser}, #{operTime}, #{className}, #{methodName}, #{methodParams}, #{returnValue}, #{costTime})")
    void insertLog(OperateLog log);

}
